package com.financial.sys.service.repayment;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.financial.model.pojo.TRepayment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.financial.sys.vo.repayment.TRepaymentQuery;
import com.financial.sys.vo.repayment.TRepaymentrepayQuery;
import com.financial.common.vo.JsonResult;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hzy
 * @since 2020-02-12
 */
public interface TRepaymentService extends IService<TRepayment> {

        //根据当前时间来查询 已逾期数据
        List<TRepayment> selectByDeadline(Date today);
        //我的还款
        IPage query(TRepaymentQuery TRepaymentQuery);
        //还款明细

        //还款操作
        JsonResult repay(TRepaymentrepayQuery TRepaymentrepayQuery);

        //根据借款ID 获取相关借款数据
        List<TRepayment>  selectBorrowId(String borrowId);
}
